Debian 9 Stretch
Sponsored Link

Configure VNC Server
2017/06/21
 
Install and Configure VNC Server to connect with GUI from remote clients.
[1] Install VNC Server.
root@dlp:~#
apt -y install vnc4server
[2] Login as a user you'd like to set VNC. By the way, this example shows to use MATE Desktop on VNC.
# set VNC password

debian@dlp:~$
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
# start VNC server

debian@dlp:~$
vncserver :1


/usr/bin/xauth:  file /home/debian/.Xauthority does not exist

New 'dlp.srv.world:1 (debian)' desktop at :1 on machine dlp.srv.world

Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/debian/.vnc/dlp.srv.world:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/debian/.vnc/passwd :1 to connect to the VNC server.

# stop once

debian@dlp:~$
vncserver -kill :1

Killing Xtigervnc process ID 890... success!
debian@dlp:~$
vi ~/.vnc/xstartup
# create new

exec /usr/bin/mate-session &
# start with diplay number [1], screen resolution [800x600], color depth [24], allow from remote host setting

debian@dlp:~$
vncserver :1 -geometry 800x600 -depth 24 -localhost no


New 'dlp.srv.world:1 (debian)' desktop at :1 on machine dlp.srv.world

Starting applications specified in /home/debian/.vnc/xstartup
Log file is /home/debian/.vnc/dlp.srv.world:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/debian/.vnc/passwd :1 to connect to the VNC server.
[3]
Install VNC viewer on client computer, this example in on Windows 10.
Download from the site below to install UltraVNC.
After installing UltraVNC, click "UltraVNC Viewer" to run, then, following screen is shown. Input [(Server's hostname or IP address):(display number)] like following example and then click "Connect" button.
[4] Password is required. Input VNC password you set in the section [2].
[5] Just connected.
 
Tweet